﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;

namespace WS.EKA.UI.Business
{
    internal class WebSocketPointDemoFactory : ReportBase<List<int>>
    {
        public override WebSocketClientType Key
        {
            get { return WebSocketClientType.Sample; }
        }

        public override string GetJsonString(object parameter)
        {
            var _parameter = parameter as ReportParameter<List<int>>;
            string str = JsonConvert.SerializeObject(_parameter.Data);
            str = "[" + str + "]";
            return str;
        }
    }
}